﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UM_SERVER.Net
{
    /// <summary>
    ///     端口监听器基类
    /// </summary>
    abstract class PortListenManager : Manager
    {
        /// <summary>
        ///     安装端口监听器
        /// </summary>
        /// <param name="Listener" type="UM_SERVER.Net.PortListener">
        ///     <para>
        ///         端口监听器
        ///     </para>
        /// </param>
        /// <returns>
        ///     返回true, 则安装成功
        /// </returns>
        public abstract bool InstallListener(PortListener Listener);
        /// <summary>
        ///     移除端口监听器
        /// </summary>
        /// <param name="Listener" type="UM_SERVER.Net.PortListener">
        ///     <para>
        ///         端口监听器
        ///     </para>
        /// </param>
        /// <returns>
        ///     返回true, 则移除成功
        /// </returns>
        public abstract bool RemoveListener(PortListener Listener);
        /// <summary>
        ///     移除端口监听器
        /// </summary>
        /// <param name="Key" type="String">
        ///     <para>
        ///         要移除的端口监听器KEY
        ///     </para>
        /// </param>
        /// <returns>
        ///     返回true, 则移除成功
        /// </returns>
        public abstract bool RemoveListener(String Key);
    }
}
